import { Model } from './Model';

import { Role } from './Permission';

export type LoginParam = {
    username: string;
    password: string;
}

export type PasswordParam = {
    oldPassword: string;
    confirmOldPassword: string;
    password: string;
}

export type User = {
    name?: string;
    first_name: string;
    last_name?: string;
    username: string;
    email?: string;
    password?: string;

    roles?: Role[];
} & Model

export type Auth = {
    token: string;
}
